<?php if (isset($redirect)) echo $javascript->codeBlock('window.location = "/assessments/"'); ?>
<div class="assessment">
	<div class="eTitle">
		<h2>Create New Assessment</h2>
	</div>
	<div id="aForm">
	<?php echo $ajax->form(array('type' => 'post',
				'options' => array(
					'model'=>'Assessment',
					'update'=>'create_assessment',
					'url' => array(
						'controller' => 'assessments',
						'action' => 'add'
					),
				)
			));
			?>
	<div id="aFormLeft">
			
			<?php //echo $form->create('Assessment', array('action'=>'add'));?>
			<?php echo $form->input('name');?>
			<?php echo $form->input('assessment_password');?>
	</div>
	<div id="aFormRight">
			<?php echo $form->input('Course');?>
			<?php echo $form->input('learning_objective');?>
			<?php echo $form->submit('Create New Assessment'); ?>
			<?php echo $form->end(); ?>
	</div>
	</div>

</div>